package cn.com.zero.api.auth.constant;

/**
 * @author xiongxj
 * @version 1.0.0
 * @Description 用户的redis缓存Key常量类
 * @createTime 2023/3/23 10:05
 */
public class UserCacheKeyConstants {
    /**
     * 用户所属端缓存KEY前缀
     */
    public final static String USER_SIDE_KEY = "UserSide";

    /**
     * 在线用户缓存KEY前缀
     */
    public final static String ONLINE_USER_KEY = "Online";

    /**
     * 用户KEY前缀
     */
    public final static String USER_KEY = "User";

    /**
     * 被锁定的用户KEY前缀
     */
    public final static String LOCKED_USER_KEY = "LockedUser";

    /**
     * 登录设备KEY前缀
     */
    public final static String LOGIN_DEVICE_KEY = "LoginDevice";

    /**
     * token签发时间KEY前缀
     */
    public final static String TOKEN_ISSUE_TIME_KEY = "TokenIssueTime";

    /**
     * 用户无需登录的权限缓存KEY前缀
     */
    public final static String PUBLIC_PERMISSION_KEY = "PublicPermission";

    /**
     * 用户登录就拥有的权限缓存KEY前缀
     */
    public final static String PUBLIC_LOGIN_PERMISSION_KEY = "PublicLoginPermission";

    /**
     * 用户指定的菜单权限权限缓存KEY前缀
     */
    public final static String MENU_PERMISSION_KEY = "MenuPermission";


}
